//
//  Messages.m
//  DataStatistics
//
//  Created by oilklenze on 16/2/17.
//  Copyright © 2016年 YTYangK. All rights reserved.
//

#import "Messages.h"

@implementation Comments

+ (BOOL)propertyIsOptional:(NSString *)propertyName
{
    return YES;
}


-(void)setCommentContent:(NSString *)commentContent
{
    _commentContent =commentContent;
    NSLog(@"%@",commentContent);
}

-(void)setUser_name:(NSString *)user_name
{
    
    _user_name =user_name;
    NSString *user_name1;
    NSString *comentcomtet1;
    user_name1= [NSString stringWithFormat:@"%@",self.user_name];
    comentcomtet1 = [NSString stringWithFormat:@":%@",self.commentContent];
    self.user_nameAndComemtenContet = [user_name1 stringByAppendingString:comentcomtet1];

    NSLog(@"user_name ====================  %@",self.user_nameAndComemtenContet);

    
}


@end

@implementation Messages

+ (BOOL)propertyIsOptional:(NSString *)propertyName
{
    return YES;
}

- (void)setUser_image:(NSString *)user_image
{
    _user_image = [GET_HEND_IMAGE_IP stringByAppendingString: user_image];
}

@end


@implementation Body


+ (JSONKeyMapper *)keyMapper
{
    return [[JSONKeyMapper alloc]initWithDictionary:@{
                                                      @"body.messages":@"messages"
                                                      
                                                      }];
}

@end